﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PageLibrary
{
    class Input<T>:Element<T>
    {
        public Input(T label, string xPath)
        {
            this.Label = label;
            this.XPath = xPath;
        }

        public Input(T label, string elementClass, string id)
        {
            this.ElementClass = elementClass;
            this.Label = label;
            this.XPath = "//input[@class='" + elementClass + "']";
        }

        public Input(T label, string name, string id, string value)
        {
            this.Id = id;
            this.Label = label;
            this.Name = name;
            this.Value = value;
            this.XPath = "//input[@id='" + Id + "']";
        }

        public Input(T label, string name, string elementClass, string id, string value)
        {
            this.Name = name;
            this.ElementClass = elementClass;
            this.Id = id;
            this.Value = value;
            this.Label = label;
            this.XPath = "//input[@id='" + Id + "']";
        }
    }
}
